package gov.nhso.prov.acc.servlets;

import gov.nhso.prov.acc.apps.acc7.ACC70201;
import gov.nhso.prov.acc.apps.acc7.ACC70202;
import gov.nhso.prov.acc.apps.acc7.ACC70203;
import gov.nhso.prov.acc.apps.acc7.ACC70301;
import gov.nhso.prov.acc.apps.acc7.ACC70302;
import gov.nhso.prov.acc.apps.acc7.ACC70303;
import gov.nhso.prov.acc.apps.acc7.ACC70304;
import gov.nhso.prov.acc.apps.acc7.ACC70305;
import gov.nhso.prov.acc.apps.acc7.ACC70401;
import gov.nhso.prov.acc.apps.acc7.ACC70402;
import gov.nhso.prov.acc.apps.acc7.ACC70403;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class ACC7Servlet extends ServletDispatcher  {
	private static final long serialVersionUID = 1L;
	public void doProcess(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		String url = "/index.jsp";
		try {
			this.setAllRequest(request);
			String app = (String) request.getAttribute("app");
			if (app.equals("ACC70201")) {
				ACC70201 acc70201 = new ACC70201(request, response);
				url = acc70201.url;
				acc70201 = null;
			} else if (app.equals("ACC70202")){
				ACC70202 acc70202 = new ACC70202(request, response);
				url = acc70202.url;
				acc70202 = null;
			} else if (app.equals("ACC70203")){
				ACC70203 acc70203 = new ACC70203(request, response);
				url = acc70203.url;
				acc70203 = null;
			} else if (app.equals("ACC70301")){
				ACC70301 acc70301 = new ACC70301(request, response);
				url = acc70301.url;
				acc70301 = null;
			} else if (app.equals("ACC70302")){
				ACC70302 acc70302 = new ACC70302(request, response);
				url = acc70302.url;
				acc70302 = null;
			} else if (app.equals("ACC70303")){
				ACC70303 acc70303 = new ACC70303(request, response);
				url = acc70303.url;
				acc70303 = null;
			} else if (app.equals("ACC70304")){
				ACC70304 acc70304 = new ACC70304(request, response);
				url = acc70304.url;
				acc70304 = null;
			} else if (app.equals("ACC70305")){
				ACC70305 acc70305 = new ACC70305(request, response);
				url = acc70305.url;
				acc70305 = null;
			} else if (app.equals("ACC70401")){
				ACC70401 acc70401 = new ACC70401(request, response);
				url = acc70401.url;
				acc70401 = null;
			} else if (app.equals("ACC70402")){
				ACC70402 acc70402 = new ACC70402(request, response);
				url = acc70402.url;
				acc70402 = null;
			} else if (app.equals("ACC70403")){
				ACC70403 acc70403 = new ACC70403(request, response);
				url = acc70403.url;
				acc70403 = null;
			}
			
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			this.dispatcherForward(request, response, url);
		}
	}

}
